package com.ccsu.mymarket.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Set;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "user_info")
public class User {
    //    账号id
    private Integer id;
    //    账号昵称
    private String accName;
    //    密码-可改
    private String pass;
    //    真实姓名
    private String realName;
    //    性别-可改
    private String sex;

    //    账号状态-可改
    private Integer state;
    //    电话号码-可改
    private String phone;
    //    钱包余额
    private Double purse;
    //    头像地址-可改
    private String portrait;
    //    默认收获地址id-可改
    private Integer addressDefault;
    //    用户所在区域
    private Integer region;
    //    账号注册时间
    private String registerTime;
    //    用户角色
    private Integer role;

    @TableField(exist = false)
    private String roleName;
    @TableField(exist = false)
    private Integer shopId;
//    @TableField(exist = false)
//    private Role myRole;
}
